package com.gitee.feizns.itrip.personal.auth.entity.ao;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author feizns
 * @since 2019/1/14 0014
 */
@Data
public class ForAcceptDoRegister {

    /**
     * 若是第三方登录，系统将自动生成唯一账号；自注册用户则为邮箱或者手机号
     */
    @NotNull(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.usercode}")
    @NotEmpty(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.usercode}")
    private String userCode;

    /**
     * 若是第三方登录，系统将自动生成唯一密码；自注册用户则为自定义密码
     */
    @NotNull(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.password}")
    @NotEmpty(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.password}")
    private String userPassword;

    /**
     * 用户昵称
     */
    @NotNull(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.name}")
    @NotEmpty(message = "{com.gitee.feizns.itrip.personal.auth.entity.ao.name}")
    private String userName;

}
